//
//  AddContentProvider.swift
//  TODOApp
//
//  Created by chenyh on 2018/5/25.
//  Copyright © 2018年 chenyh. All rights reserved.
//


struct AddContentProvider {
    
    func getTodoList(params: (String,String),complement: @escaping (Bool) -> Void ) {
        NetLayerRequestSender().send(ApiRequestManager.addTodo(title: params.0, content: params.1)) { baseModel,error  in
            if error != nil {
                complement(false)
            }else if baseModel!.status == 1 {
                complement(true)
            }
        }
    }
}
